<template>
	<view :class="isPhoneBox?'mp-header hidden':'mp-header'">
		<view class="sys-head" :style="{ height: statusBarHeight + 'px' }"></view>
		<view class="sys-title flex-a">
			<!-- <image src="../../static/store/logo.png" mode="widthFix"></image> -->
			<text>{{title}}</text>
		</view>
	</view>
</template>

<script>
	var statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
	export default {
		props: {
			isPhoneBox:{
				type: Boolean,
				default: false,
			},
			title:{
				type: String,
				default: '贝安云店',
			}
		},
		data() {
			return {
				statusBarHeight: statusBarHeight,
			};
		},
		methods: {}
	}
</script>

<style lang="scss">
	.mp-header {
		z-index: 999;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		/* #ifdef H5 */
		padding-bottom: 20rpx;
		/* #endif */
	}
	.mp-header.hidden{
		z-index: -20;
	}
	.sys-title,
	.sys-head {
		background-color: $theme-color;
	}

	.sys-title {
		color: #fff;
		padding-left: 10px;
		height: 50px;
		line-height: 50px;
		// border-top: 1rpx solid #FFDF31;
		font-size: 34rpx;
		image {
			width: 40rpx;
			border-radius: 50%;
			border: 1px solid #fff;
		}
	}
</style>
